package demo2;

public class Test {

    public static void drawMap(IShape iShape){
        iShape.draw();
    }

    public static void main(String[] args) {
        IShape iShape1=new Cycle();
        IShape iShape2=new Rect();

        drawMap(iShape1);
        drawMap(iShape2);
    }

    public static void main1(String[] args) {
        //接口不可以进行实例化
//        IShape iShape=new IShape();
    }
}
